#include	<stdlib.h>
#include	"get_next_line.h"

void		my_putchar(char c)
{
  write(1, &c, 1);
}

void		my_putstr(char *str)
{
  int		i;

  i = 0;
  while (str[i])
    my_putchar(str[i++]);
}

int		main(int ac, char **av)
{
  char		*s;

  while ((s= get_next_line(0)))
    {
      my_putstr(s);
      my_putchar('\n');
      free(s);
    }
  return (0);
}
